﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace _08_ReplaceWithAlphabetPosition
{
    public static class Kata
    {
        public static string AlphabetPosition(string text)
        {
            var str = Regex.Replace(text, "[^a-zA-Z]", "");
            StringBuilder sb = new StringBuilder();
            foreach (var item in str)
            {
               sb.Append(char.ToUpper(item) - 'A'+1);
                sb.Append(" ");
            }
            return sb.ToString();
        }
    }
}
